import request from '@/utils/request'

// 查询停车情况列表
export function listParkRecord(query) {
  return request({
    url: '/car/parkRecord/list',
    method: 'get',
    params: query
  })
}

// 查询停车情况详细
export function getParkRecord(parkRecordId) {
  return request({
    url: '/car/parkRecord/' + parkRecordId,
    method: 'get'
  })
}

// 新增停车情况
export function addParkRecord(data) {
  return request({
    url: '/car/parkRecord',
    method: 'post',
    data: data
  })
}

// 修改停车情况
export function updateParkRecord(data) {
  return request({
    url: '/car/parkRecord',
    method: 'put',
    data: data
  })
}

// 删除停车情况
export function delParkRecord(parkRecordId) {
  return request({
    url: '/car/parkRecord/' + parkRecordId,
    method: 'delete'
  })
}
